/*
  File: RoleCreateRequest.cs
  Author: rcrxy
  CreateTime: 2025/07/03 16:18

  Description:
*/

using StudentVideo.Shared.Enums;
using System.ComponentModel.DataAnnotations;

namespace StudentVideo.Shared.Dtos.Role;

public class RoleCreateRequest {

   /// <summary>
   /// 角色名称
   /// </summary>
   [Required]
   [MinLength(1)]
   [MaxLength(20)]
   public required string Name { get; set; }

   /// <summary>
   /// 启用状态
   /// </summary>
   public bool IsActive { get; set; } = true;

   /// <summary>
   /// 角色类型
   /// </summary>
   public RoleTypeEnum RoleType { get; set; } = RoleTypeEnum.Ordinary;

   /// <summary>
   /// 备注
   /// </summary>
   public string? Des { get; set; } = string.Empty;
}
